package cn.ys.org.service;

import cn.ys.base.util.PageList;
import cn.ys.org.domain.Department;
import cn.ys.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentService {

    // 查询所有
    List<Department> findAll();
    // 查询一个
    Department findById(Long id);
    // 新增
    void add(Department department);
    // 修改
    void update(Department department);
    // 删除
    void delete(Long id);
    // 查询分页
    PageList<Department> queryByPage(DepartmentQuery query);
    // 批量删除
    void piDeleteById(List<Long> ids);

    List<Department> deptTree();
}
